<!--
	作者：2575202388@qq.com
	时间：2018-10-14
	描述：基础设置顶部
-->

<template>
	
	<div>
		<Nav title="辅导班" :list="navlist" @clicktitle="clicktitle"></Nav>
		<Body>
			<router-view></router-view>
		</Body>
		<headEdit ref="headEdit" :params="params" @setSystemInfo="getSystemInfo"></headEdit>
	</div>
</template>
<script>
	import headEdit from "./headEdit";
	export default {
		name:"fdbhead",
		data() {
			return {
				navlist:[	
					{
						path:'/fdb/whkfdb',
						name:"文化课辅导班"
					},
					{
						path:'/fdb/sthdfdb',
						name:"社团活动辅导班"
					},
					{
						path:'/fdb/whkhisfdb',
						name:"文化课历史辅导班"
					},{
						path:'/fdb/sthdhisfdb',
						name:"社团活动历史辅导班"
					},
				],
				params:{
					whkfdb0:"文化课辅导班",
					sthdfdb0:"社团活动辅导班",
					whklsfdb0:"文化课历史辅导班",
					sthdlsfdb0:"社团活动历史辅导班"
				}
			}
		},
		methods: {
			getSystemInfo(){
				var csid=this.user.CSID;
				this.$http.get("/host/stgl/getsystemSet.html?csid="+csid)
				.then(datas => {
					
					this.navlist=[
						{
							path:'/fdb/whkfdb',
							name:datas.WHKFDB
						},
						{
							path:'/fdb/sthdfdb',
							name:datas.STHDFDB
						},
						{
							path:'/fdb/whkhisfdb',
							name:datas.WHKLSFDB
						},
						{
							path:'/fdb/sthdhisfdb',
							name:datas.STHDLSFDB
						}
					];
					
					this.params={
						csid:this.user.CSID,
						whkfdb0:datas.WHKFDB,
						sthdfdb0:datas.STHDFDB,
						whklsfdb0:datas.WHKLSFDB,
						sthdlsfdb0:datas.STHDLSFDB
					}
						
				});
			},
			
			clicktitle(){
				this.$refs.headEdit.modal0 = true;
			}
		},
		components: {
			headEdit
		},
		computed: {
			user: function() {
				return this.$store.state.app.user;
			}
		},
		mounted() {
			this.getSystemInfo();
		},
		watch:{
		}
	}
</script>

<style>
</style>



